projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7901a46
)
xend: Don't call decode() if PV_{kernel,ramdisk} are ''
author
Keir Fraser
<keir.fraser@citrix.com>
Thu, 23 Jul 2009 08:00:21 +0000
(09:00 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Thu, 23 Jul 2009 08:00:21 +0000
(09:00 +0100)
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xend/XendConfig.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xend/XendConfig.py
b/tools/python/xen/xend/XendConfig.py
index 76faec9b1a079ffb510db96d9506d8b59606342b..8ba43cd1ac70d3f8e814047a5cd076f7cc0b0379 100644
(file)
--- a/
tools/python/xen/xend/XendConfig.py
+++ b/
tools/python/xen/xend/XendConfig.py
@@
-2087,7
+2087,7
@@
class XendConfig(dict):
def handle_fileuris(self):
for arg in [('PV_kernel', 'use_tmp_kernel'),
('PV_ramdisk', 'use_tmp_ramdisk')]:
- if self[arg[0]]
!= None
:
+ if self[arg[0]]:
self[arg[0]], self[arg[1]] \
= xen.util.fileuri.schemes.decode(self[arg[0]])
log.debug("fileuri '%s' = '%s'" % (arg[0], self[arg[0]][:100]))